package com.itheima.sh.clients.fallback;

import com.itheima.sh.clients.UserFeign;
import com.itheima.sh.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Version: V1.0
 */
@Component
public class UserFeinFallBack implements UserFeign {


    @Override
    public User queryById(String username) {
        User user = new User();
        user.setName("-1");
        user.setUsername(username);
        user.setNickName("暂停服务--UserFeinFallBack");
        return user;
    }

    @Override
    public User list(String username, String name) {
        System.out.println("-----");
        return null;
    }
}
